PRAMADILLO\Woocommerce_Pay_Per_Post_Restrict_Content B

Total Complexity 87
Dependencies 2
Dependents 3
Total lines 443
Lines of code 293
Logical lines of code 170
Comment lines 49
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
show_content()
A
51 10 26
can_user_view_content()
A
56 10 16
check_if_purchased()
A
53 8 22
check_if_has_access()
S
58 5 16
process_status_shortcode()
S
60 5 13
check_if_should_show_paywall()
S
64 5 11
__construct()
S
49 3 31
check_if_admin_call()
S
67 3 8
check_if_admin_user_have_access()
S
65 3 9
check_if_user_role_has_access()
S
64 3 10
check_if_is_paid_memberships_pro_member()
S
65 3 9
check_if_is_member()
S
65 3 9
check_if_is_subscriber()
S
65 3 9
get_paywall_content()
S
58 2 14
countdown_refresh()
S
62 1 18
check_if_logged_in()
S
72 2 5
check_if_protected()
S
68 2 8
check_if_post_contains_subscription_products()
S
71 2 5
check_if_post_contains_membership_products()
S
71 2 5
check_if_post_contains_paid_memberships_pro_membership_products()
S
71 2 5
shortcode_expiration_status()
S
63 2 10
register_shortcodes()
S
79 1 3
set_track_pageview()
S
81 1 3
show_paywall()
S
79 1 3
is_expired()
S
80 1 3
get_current_user_roles()
S
81 1 3
get_time_difference()
S
72 1 5
shortcode_pageview_status()
S
65 1 8
available_status_templates()
S
72 1 6